package com.gotop.auth.granter;

import com.gotop.common.utils.auth.TokenParameter;
import com.gotop.info.UserInfo;

/**
 * @program: cem
 * @description: 授权认证统一接口.
 * @author: superfish
 * @create: 2020-12-17 16:01
 **/
public interface ITokenGranter {

    /**
     * 获取用户信息
     *
     * @param tokenParameter 授权参数
     * @return UserInfo
     */
    UserInfo grant(TokenParameter tokenParameter);

}
